package com.ktwlsoft.archivemanage.payload.businessInspect;

import com.ktwlsoft.archivemanage.domain.dao.entity.businessInspect.BusinessInspectRandomizing;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 业务检查随机抽取
 *
 * @author Name on 2023/6/25 14:54
 * @version 1.0
 */
@Data
public class BusinessInspectRandomizingSaveRequest {

    /**
     * 主键
     */
    @ApiModelProperty("主键")
    @NotNull(message = "主键不能为空")
    private Long id;

    /**
     * 业务id
     */
    @ApiModelProperty("业务id")
    @NotNull(message = "业务id不能为空")
    private Long businessId;

    /**
     * 业务名称
     */
    @ApiModelProperty("业务名称")
    @NotNull(message = "业务名称不能为空")
    @Size(max = 100,message = "业务名称超长")
    private String businessName;

    /**
     * 业务类型
     */
    @ApiModelProperty("业务类型:PERSONNEL(人员),UNIT(单位)")
    @NotNull(message = "业务类型不能为空")
    @Size(max = 100,message = "业务类型超长")
    private BusinessInspectRandomizing.businessType businessType;

    /**
     * 业务描述
     */
    @ApiModelProperty("业务描述")
    @NotNull(message = "业务描述不能为空")
    @Size(max = 100,message = "业务描述超长")
    private String businessDesc;

    /**
     * 关联对象id
     */
    @ApiModelProperty("关联对象id")
    private Long objectId;

    /**
     * 关联对象名称
     */
    @ApiModelProperty("关联对象名称")
    @Size(max = 100,message = "关联对象名称超长")
    private String objectName;
}